<!--这个是单词卡的菜单-->

<!doctype html>
<html lang="en">
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- head 中 -->
    <link rel="stylesheet" href="css/materialize.min.css">

    

    <title>H5 网页示例</title>

    <style>
        #title{
            color: #fb8c00;
        }

    </style>
</head>
<body style="margin-left: 10px;margin-right: 10px">


<!DOCTYPE html>
<html lang="ja">
<head>
    <meta charset="UTF-8">
    <title>日语单词卡片</title>
    <style>

    </style>
</head>
<body>


<script>

</script>
</body>
</html>



<!--<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>单词库</title>
    <link rel="stylesheet" href="styles.css"/>
    <style>

        /* 选项卡样式 */
        .tabs {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .tabs li {
            display: inline-block;
            margin-right: 10px;
            background-color: #eee;
            padding: 5px;
        }

        .tabs li a {
            text-decoration: none;
            color: #333;
        }

        .tabs li.active {
            background-color: #333;
        }

        .tabs li.active a {
            color: white;
        }

        /* 单词卡片样式 */
        .word {
            display: none;
            position: absolute;
            top: 50px;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #fff;
            padding: 20px;
        }

        .word h1 {
            font-size: 24px;
            font-weight: bold;
        }

        .word p {
            font-size: 18px;
            margin-top: 20px;
        }


    </style>
</head>
<body>
<div class="container">
    <div class="tabs">
        <ul>
            <li><a href="#word1">单词1</a></li>
            <li><a href="#word2">单词2</a></li>
            <li><a href="#word3">单词3</a></li>
            &lt;!&ndash; ... 增加更多单词选项卡 ... &ndash;&gt;
        </ul>
    </div>
    <div class="content">
        <div id="word1" class="word">
            <h1>单词1</h1>
            <p>单词1的详细内容...</p>
        </div>
        <div id="word2" class="word">
            <h1>单词2</h1>
            <p>单词2的详细内容...</p>
        </div>
        <div id="word3" class="word">
            <h1>单词3</h1>
            <p>单词3的详细内容...</p>
        </div>
        &lt;!&ndash; ... 增加更多单词卡片 ... &ndash;&gt;
    </div>
</div>
<script>
    // 获取所有选项卡元素
    var tabs = document.querySelectorAll('.tabs li');

    // 获取所有单词卡片元素
    var words = document.querySelectorAll('.word');

    // 遍历所有选项卡元素，为它们添加点击事件
    for (var i = 0; i < tabs.length; i++) {
        tabs[i].addEventListener('click', function(e) {
            // 阻止默认行为
            e.preventDefault();

            // 切换选项卡样式
            for (var j = 0; j < tabs.length; j++) {
                tabs[j].classList.remove('active');
            }
            this.classList.add('active');

            // 切换单词卡片显示
            for (var k = 0; k < words.length; k++) {
                words[k].style.display = 'none';
            }
            var target = this.querySelector('a').getAttribute('href');
            document.querySelector(target).style.display = 'block';
        });
    }

    // 默认显示第一个单词卡片
    tabs[0].click();

</script>

</body>
</html>-->  <!--单词库-->




<!DOCTYPE html>
<html>
<head>
    <title>卡片示例</title>
    <style>
        .card {
            background-color: #fff;
            box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 400px;
            margin: 50px auto;
        }

        .card input[type=text] {
            padding: 10px;
            margin-bottom: 10px;
            border: none;
            border-bottom: 1px solid #ddd;
            width: 100%;
            font-size: 18px;
        }

        .card .tabs {
            display: flex;
            margin-top: 20px;
        }

        .card .tabs .tab {
            background-color: #ddd;
            padding: 10px 20px;
            border-radius: 5px;
            margin: 0 10px;
            cursor: pointer;
            font-size: 18px;
            transition: all 0.3s ease;
        }

        .card .tabs .tab:hover {
            background-color: #555;
            color: #fff;
        }

        .card .tabs .active {
            background-color: #555;
            color: #fff;
        }
    </style>
</head>
<body>

<div class="card">
    <!-- //主观题卡片-->
    ［名］
    <span class="card-title">海鮮</span>
    <span class="card-title">かいせん</span>

    <p> —————— </p>
    <p>例句：確か彼は海鮮が苦手だったよね？</p>
    <p> —————— </p>

    <p>中文释义：海鲜  </p>
    <p>对应英语单词：seafood</p>

</div>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
    <title>卡片示例</title>
    <style>
        .card {
            background-color: #fff;
            box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 400px;
            margin: 50px auto;
        }

        .card input[type=text] {
            padding: 10px;
            margin-bottom: 10px;
            border: none;
            border-bottom: 1px solid #ddd;
            width: 100%;
            font-size: 18px;
        }

        .card .tabs {
            display: flex;
            margin-top: 20px;
        }

        .card .tabs .tab {
            background-color: #ddd;
            padding: 10px 20px;
            border-radius: 5px;
            margin: 0 10px;
            cursor: pointer;
            font-size: 18px;
            transition: all 0.3s ease;
        }

        .card .tabs .tab:hover {
            background-color: #555;
            color: #fff;
        }

        .card .tabs .active {
            background-color: #555;
            color: #fff;
        }
    </style>
</head>
<body>

<div class="card">
    <!-- //主观题卡片-->
    ［自动词·サ变/三类］
    <span class="card-title">造語</span>
    <span class="card-title">ぞうご</span>

    <p> —————— </p >
    <p>例句：彼の造語能力は非常に優れています。</p >
    <p> —————— </p >

    <p>中文释义：创造新词，造复合词，（所创造的）新词  </p >
    <p>对应英语单词：coined </p >

</div>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
    <title>卡片示例</title>
    <style>
        .card {
            background-color: #fff;
            box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 400px;
            margin: 50px auto;
        }

        .card input[type=text] {
            padding: 10px;
            margin-bottom: 10px;
            border: none;
            border-bottom: 1px solid #ddd;
            width: 100%;
            font-size: 18px;
        }

        .card .tabs {
            display: flex;
            margin-top: 20px;
        }

        .card .tabs .tab {
            background-color: #ddd;
            padding: 10px 20px;
            border-radius: 5px;
            margin: 0 10px;
            cursor: pointer;
            font-size: 18px;
            transition: all 0.3s ease;
        }

        .card .tabs .tab:hover {
            background-color: #555;
            color: #fff;
        }

        .card .tabs .active {
            background-color: #555;
            color: #fff;
        }
    </style>
</head>
<body>

<div class="card">
    <!-- //主观题卡片-->
    ［自动词·サ变/三类］
    <span class="card-title">先駆け</span>
    <span class="card-title">さきがけ</span>

    <p> —————— </p >
    <p>例句：彼の先駆け的なアイデアは新しい文化の普及に貢献した。</p >
    <p> —————— </p >

    <p>中文释义：先驱，先锋，开拓者</p >
    <p>对应英语单词：pioneer </p >

</div>

<div class="card">
    <!-- //主观题卡片-->
    ［自動詞·ガ変/五段］
    <span class="card-title">躍動感</span>
    <span class="card-title">やくどうかん</span>

    <p> —————— </p >
    <p>例句：この絵画の中に躍動感があふれている。</p >
    <p> —————— </p >

    <p>中文释义：充满活力的感觉，充满生命力的感觉，活力 </p >
    <p>对应英语单词：dynamism </p >

</div>
</body>
</html>

<!DOCTYPE html>
<html lang="ja">
<head>
    <meta charset="UTF-8">
    <title>日语单词卡片</title>
    <style>
        .card {
            width: 300px;
            padding: 20px;
            background-color: white;
            border: 1px solid #ddd;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
            margin-bottom: 20px;
        }

        .word {
            font-size: 30px;
            font-weight: bold;
        }

        .pronunciation {
            font-size: 20px;
            color: #666;
        }

        .part-of-speech {
            font-size: 16px;
            color: #666;
        }

        .chinese-meaning {
            font-size: 20px;
            color: #666;
        }

        .example {
            margin-top: 20px;
        }

        .example-japanese {
            font-size: 16px;
            color: #333;
            margin-bottom: 5px;
        }

        .example-chinese {
            font-size: 16px;
            color: #666;
        }

        .kanji {
            font-size: 24px;
            text-align: center;
        }

        .kana {
            font-size: 20px;
            text-align: center;
            color: #666;
        }
    </style>
</head>
<body>
<div class="card">
    <div class="word">飛行機</div>
    <div class="pronunciation">ひこうき</div>
    <div class="part-of-speech">名词</div>
    <div class="chinese-meaning">飞机</div>
    <div class="example">
        <div class="example-japanese">あの人は飛行機が大好きです。</div>
        <div class="example-chinese">那个人非常喜欢飞机。</div>
    </div>
    <div class="kanji">飛行機</div>
    <div class="kana">ひこうき</div>
</div>
<div class="card">
    <div class="word">鉛筆</div>
    <div class="pronunciation">えんぴつ</div>
    <div class="part-of-speech">名词</div>
    <div class="chinese-meaning">铅笔</div>
    <div class="example">
        <div class="example-japanese">机の上に鉛筆があります。</div>
        <div class="example-chinese">桌子上有一支铅笔。</div>
    </div>
    <div class="kanji">鉛筆</div>
    <div class="kana">えんぴつ</div>
</div>
<div class="card">
    <div class="word">猫</div>
    <div class="pronunciation">ねこ</div>
    <div class="part-of-speech">名词</div>
    <div class="chinese-meaning">猫</div>
    <div class="example">
        <div class="example-japanese">あの家に猫がいます。</div>
        <div class="example-chinese">那个家里有猫。</div>
    </div>
    <div class="kanji">猫</div>
    <div class="kana">ねこ</div>
</div>
</body>
</html>

